package com.good.domain.models;

/**
 * 错误代码
 */
public enum ErrorCode {
    Success("成功",0),
    NoDataError("没有数据",1),
    SignError("签名错误",2),
    CatchError("捕获的错误",3),
    PermissionError("权限不足",4),
    DuplicateError("重复注册",5),
    NoParamError("缺少参数",6),
    RequestError("错误请求",400),
    Error401("验证失败",401),
    Error402("token信息不存在",4012),
    BanError("账号已被封禁",4015),
    RepeatError("重复提交",4016),
    TokenInvalidError("token失效",4017),
    Error500("内部错误",500),
    OtherError("其他错误",100),


    ;
    private String Description;
    private int Code;

    public String getDescription() {
        return Description;
    }

    public void setDescription(String description) {
        Description = description;
    }

    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        Code = code;
    }

    private ErrorCode(String description, int code){
        this.Code=code;
        this.Description=description;
    }

}
